#ifndef JOINT_H_INCLUDED
#define JOINT_H_INCLUDED

#include "PointMass.h"
#include "Vector.h"

namespace BlobSalladDS
{
	class Joint
	{
		private:
			PointMass *pointMassA;
			PointMass *pointMassB;
			Vector *delta;
			Vector *pointMassAPos;
			Vector *pointMassBPos;
			double shortConst;
			double longConst;
			double scSquared;
			double lcSquared;
		public:
			Joint(PointMass *pointMassA, PointMass *pointMassB, double shortConst, double longConst);
			void setDist(double shortConst, double longConst);
			void scale(double scaleFactor);
			void sc();
	};
}

#endif // JOINT_H_INCLUDED
